//
//  RadioListCell.m
//  A Cup
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 doll. All rights reserved.
//

#import "RadioListCell.h"

@implementation RadioListCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myView = [[UIView alloc]init];
        [self.contentView addSubview:self.myView];
        [_myView release];
        self.myImageView = [[UIImageView alloc]init];
        [self.myView addSubview:self.myImageView];
        [_myImageView release];
        self.title = [[UILabel alloc]init];
        [self.myView addSubview:self.title];
        [_title release];
        self.musicVisit = [[UILabel alloc]init];
        [self.myView addSubview:self.musicVisit];
        [_musicVisit release];
        self.musicVisitImageView = [[UIImageView alloc]init];
        [self.myView addSubview:self.musicVisitImageView];
        [_musicVisitImageView release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 60);
    self.myImageView.frame = CGRectMake(15, 10, 50, 50);
    self.title.frame = CGRectMake(70, 10, self.contentView.frame.size.width - 30, 15);
    self.title.textColor = [UIColor grayColor];
    self.title.font = [UIFont systemFontOfSize:15];
    self.musicVisitImageView.frame = CGRectMake(70, 38, 20, 20);
    self.musicVisit.frame = CGRectMake(110, 40, self.contentView.frame.size.width - 125, 15);
    self.musicVisit.textColor = [UIColor grayColor];
    self.musicVisit.font = [UIFont systemFontOfSize:15];
}
- (void)dealloc
{
    [_myImageView release];
    [_title release];
    [_musicVisit release];
    [_musicVisitImageView release];
    [super dealloc];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
